<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="/plantillas/plantillaPrincipal.xhtml">
        <ui:define name="contenido"> 
            <f:view>  
                <h:form>
                    <h:panelGrid columns="1" style="width:100%;margin: 0px auto;">
                        <p:commandButton action="#{MBArticulo.nuevo()}" value="AGREGAR ARTICULO" ajax="false"/>
                    </h:panelGrid> 
                </h:form>

                <p:tabView id="tabBusquedaArticulo" dynamic="true" style="width:100%;margin: 5px auto" >  

                    <p:tab title="CONSULTAR" id="tab1" > 
                        <ui:include src="consultar.xhtml"/>
                    </p:tab>

                    <p:tab id="tab2" title="REPORTE"  >  
                        <ui:include src="reporte.xhtml"/>
                    </p:tab> 


                </p:tabView> 




            </f:view>    
        </ui:define>
    </ui:composition>
</html>   